﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Weather>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Weather
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul>
	            <li><a href="/Stack/Index"><span>堆场管理</span></a></li>
                <li><a href="/Stack/Edit/<%=ViewData["id"] %>"><span>基本信息</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>气象信息</span></a></li>
                <li><a href="/Stack/Stack/<%=ViewData["id"] %>"><span>堆场信息</span></a></li>
                <li><a href="/Stack/Pool/<%=ViewData["id"] %>"><span>调节水池</span></a></li>
                <li><a href="/Stack/Material/<%=ViewData["id"] %>"><span>材料信息</span></a></li>
                <li><a href="/Stack/Settle/<%=ViewData["id"] %>"><span>沉降模型</span></a></li>
                <li><a href="/Stack/Piezometer/<%=ViewData["id"] %>"><span>测压井测压仪</span></a></li>
                <li><a href="/Stack/Drain/<%=ViewData["id"] %>"><span>导渗系统</span></a></li>
	        </ul>
	    </div>
	</div>
    <% using (Html.BeginForm(new { enctype = "multipart/form-data" }))
       {%>
        <%= Html.ValidationSummary(true) %>
            <%
           bool result = (bool)ViewData["success"];
           if(result){ %>
           <div style="margin-top:10px;margin-bottom:10px;font-weight:bold;color:blue">气象信息更新成功</div>
           <%}
            %>
            
            <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="1" style="margin-top:10px">
              <tr>
                <th class="heightrow" style="width:40px;font-size:12px">月份</th>
                <th class="heightrow" style="font-size:12px">年最大降水量</th>
                <th class="heightrow" style="font-size:12px">年最小降水量</th>
                <th class="heightrow" style="font-size:12px">年平均降水量</th>
                <th class="heightrow" style="font-size:12px">年最大蒸发量</th>
                <th class="heightrow" style="font-size:12px">年最小蒸发量</th>
                <th class="heightrow" style="font-size:12px">年平均蒸发量</th>
                <th class="heightrow" style="font-size:12px">年最大蒸发量（蒸发皿）</th>
                <th class="heightrow" style="font-size:12px">年最小蒸发量（蒸发皿）</th>
                <th class="heightrow" style="font-size:12px">年平均蒸发量（蒸发皿）</th>
              </tr>
              <%for (int i=0; i < 12; i++)
                {
            %>
            <tr>
              <td class="row1"><%= Html.HiddenFor(model => model.Months[i].stack_id) %><%= Html.HiddenFor(model => model.Months[i].month_no) %><%=i+1 %>月</td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].rainfall_max, new {style="width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].rainfall_min, new { style = "width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].ranfall_avg, new { style = "width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].evaporation_max, new { style = "width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].evaporation_min, new { style = "width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].evaporation_avg, new { style = "width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].pan_evaporation_max, new { style = "width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].pan_evaporation_min, new { style = "width:70px" })%></td>
              <td class="row1"><%= Html.TextBoxFor(model => model.Months[i].pan_evaporation_avg, new { style = "width:70px" })%></td>
            </tr>
            
            <%} %>
            </table>

            
            <div style="margin-top:10px;text-align:center">
                <input type="submit" value="提 交" style="font-size:15px;font-weight:bold" />
            </p>

    <% } %>


</asp:Content>
